
import Relay from "react-relay";
export default class ProgressDetailMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { detailProgress }`;
    }

    getVariables() {
        return {
            argsInput: {
                orderId: this.props.orderId,
                styleNo: this.props.styleNo,
                productionType: this.props.productionType,
                groupIds:this.props.groupIds,
                enterpriseId: this.props.enterpriseId
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on detailProgressPayload  {
            detailProgress {
                errorCode
                value
                totalResult
                id
                productionProgressDetailModel{
                    timeList
                    groupList
                    mapList
                } 
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on detailProgressPayload  {
                    detailProgress {
                        errorCode
                        value
                        totalResult
                        id
                        productionProgressDetailModel{
                            timeList
                            groupList
                            mapList
                        } 
                    }
                    
                 }
            `]
        }];
    }

}
